﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MaintainCharacterInfo.aspx.cs" Inherits="CreateDictionaryWeb.MaintainCharacterInfo" %>
<%@ Register src="~/UserControl/CharacterControl.ascx" tagname="CharacterControl" tagprefix="uc1" %>
<%@ Register src="~/UserControl/CharacterInfoControl.ascx" tagname="CharacterInfoControl" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
    <tr>
        <td><asp:Button ID="btUpdateCharacter" runat="server" Text="保存部首和笔画" 
                onclick="btUpdateCharacter_Click" style="height: 21px" />
        <asp:Button ID="btSaveAll" runat="server" Text="完成" onclick="btSaveAll_Click" />
            <asp:Button ID="btGetACharacter" runat="server" onclick="btGetACharacter_Click" 
                Text="获取未维护汉字" />
        </td>
        
    </tr>
    <tr>
        <td>

            <uc1:CharacterControl ID="ccFirstCharacter" runat="server" />

        </td>
    </tr>
    <tr>
        <td><asp:Button ID="btSaveCharacterInfo" runat="server" Text="保存意义" 
                onclick="btSaveCharacterInfo_Click" /></td>
        
    </tr>
    <tr>
        <td>
            
            <uc2:CharacterInfoControl ID="cicCharacterInfo" runat="server" />
        </td>
    </tr>
    <tr>
        <td><asp:GridView ID="GVCharacterInfo" runat="server" AutoGenerateColumns="False" 
                onrowdeleting="GVCharacterInfo_RowDeleting" >
            <Columns>
                <asp:BoundField DataField="SoundMark" HeaderText="拼音" />
                <asp:BoundField DataField="PartOfSpeech" HeaderText="词性" />
                <asp:BoundField DataField="Meaning" HeaderText="意义" />
                <asp:CommandField ShowDeleteButton="True" HeaderText="删除" />
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <asp:Button ID="btEditCharacterInfo" runat="server" Text="编辑" 
                            onclick="btEditCharacterInfo_Click" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView></td>
        
    </tr>
</table>
</asp:Content>
